<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:textfield label="PID - Issue" name="studydeviations.pidIssue" id="pidIssue" value="%{studydeviations.pidIssue}"  />

<s:hidden  name="studydeviations.dateDetected" id="altdateDetected" value="%{studydeviations.dateDetected}"/>
<s:textfield label="Date Detected" id="dateDetected"  cssClass="datepicker"/>

<s:hidden  name="studydeviations.deviationFormReceived" id="altdeviationFormReceived" value="%{studydeviations.deviationFormReceived}"/>
<s:textfield label="Deviation Form Received at BMS" id="deviationFormReceived" cssClass="datepicker"/>

<s:select label="Deviation Type" name="studydeviations.deviationType" id="deviationType"  value="%{studydeviations.deviationType}"
          list="#{'Significant':'Significant', 'Non-Significant':'Non-Significant'}"/>
<s:checkbox label="Training Log Available" labelposition="left" value="%{studydeviations.trainingLog}" name="studydeviations.trainingLog" id="trainingLog" />

<s:hidden  name="studydeviations.submissionExternalEc" id="altsubmissionExternalEc" value="%{studydeviations.submissionExternalEc}"/>
<s:textfield label="Submission to External EC" id="submissionExternalEc" cssClass="datepicker"/>

<s:hidden  name="studydeviations.receivedExternalEC" id="altreceivedExternalEC" value="%{studydeviations.receivedExternalEC}"/>
<s:textfield label="Received by External EC (stamped)" id="receivedExternalEC" cssClass="datepicker"/>

<s:hidden  name="studydeviations.submissionLocalEc" id="altsubmissionLocalEc" value="%{studydeviations.submissionLocalEc}"/>
<s:textfield label="Submission to Local EC" id="submissionLocalEc" cssClass="datepicker"/>

<s:hidden  name="studydeviations.receivedLocalEC" id="altreceivedLocalEC" value="%{studydeviations.receivedLocalEC}"/>
<s:textfield label="Received by Local EC (stamped)"  id="receivedLocalEC" cssClass="datepicker"/>

<s:hidden  name="studydeviations.submissionTeachingC" id="altsubmissionTeachingC" value="%{studydeviations.submissionTeachingC}"/>
<s:textfield label="Submission to Teaching Committee" id="submissionTeachingC" cssClass="datepicker"/>

<s:hidden  name="studydeviations.receivedTeachingC" id="altreceivedTeachingC" value="%{studydeviations.receivedTeachingC}"/>
<s:textfield label="Received by Teaching Committee" id="receivedTeachingC" cssClass="datepicker"/>

<s:hidden  name="studydeviations.submissionMoh" id="altsubmissionMoh" value="%{studydeviations.submissionMoh}"/>
<s:textfield label="Submission to MOH" id="submissionMoh" value="%{studydeviations.submissionMoh}" cssClass="datepicker"/>

<s:select label="Significant Deviation: Is the ClinSIGH form  filed in OSIF?" name="studydeviations.forSignificantsDev" id="forSignificantsDev"  value="%{studydeviations.forSignificantsDev}"
          list="#{'YES':'YES', 'NO':'NO'}"/>
<s:select label="Scope" name="studydeviations.scope" id="scope"  value="%{studydeviations.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="studydeviationsSave" action="studydeviationsSave" onclick="setEmptyDates();validate();beforeSave();" theme="simple" />
    </td>
</tr>
<s:if test="studydeviations.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="studydeviationsClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="studydeviations.id" value="%{studydeviations.id}"/>
<script>
    inicializarTodaFecha();
</script>
<s:if test="studydeviations.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>